import request from './request'

// 人员轨迹信息
export function getPersonnelList(data) {
  return request({
    url: '/person/track/list',
    method: 'post',
    data: data
  })
}

// 分页查询人员信息列表
export function getPersonPage(data) {
  return request({
    url: '/person/page',
    method: 'post',
    data: data
  })
}

// 新增单个人员信息
export function addPerson(formData, headers) {
  return request({
    url: '/person/add',
    method: 'post',
    data: formData,
    headers
  })
}

// 修改单个人员信息
export function editPerson(formData, headers) {
  return request({
    url: '/person/edit',
    method: 'post',
    data: formData,
    headers
  })
}

// 删除单个人员信息
export function deletePerson(data) {
  return request({
    url: '/person/delete',
    method: 'post',
    data: data
  })
}